<p>常量必须全部大写，单词之间用下划线隔开。我们用正则表达式：<code>^[I]+[a-zA-Z0-9_]*$</code>进行校验。</p>
<h2>不合规的代码示例</h2>

<pre>
public class MyClass {
  public static final int first = 1;
}

public enum MyEnum {
  first;
}
</pre>
<h2>正确的代码示例</h2>

<pre>
public class MyClass {
  public static final int FIRST = 1; 
}

public enum MyEnum {
  FIRST;
}
</pre>
